<?php
class IndexController extends Controller 
{
	public function actionIndex()
	{
		/*
		set_time_limit(0);
		//$test = 'this is a test prpmote';
		
		for ($ix = 0;$ix<1000;$ix++)
		{
			//_log_result(time());
		}
		echo $this->model->t();
		//include(template('index', 'index'));
		*/
		/*$db = new Dbs();
		$db->set();
		echo $new;*/
		//debug(Db::Instance()->setTable('i')->fetchRowById(1, 'docid'));
		include(template('index', 'index'));
	}
	
	public function actionView()
	{
		$message = 'xiaoxiao';
		$this->render();	
	}
}

function render($r, $d)
{
	return include(template($r, $d));
}
?>